package cn.yeziji.forum.bo.special;

import cn.yeziji.forum.entity.ForumSpecialColumnEntity;
import lombok.Data;

import java.util.Date;

/**
 * @author gzkemays
 * @date 2022/5/25
 */
@Data
public class DetailSpecialDTO {
  String detailId;
  String username;
  String name;

  public ForumSpecialColumnEntity buildEntity() {
    ForumSpecialColumnEntity entity = new ForumSpecialColumnEntity();
    entity.setName(name);
    entity.setUsername(username);
    entity.setCreateTime(new Date());
    return entity;
  }
}
